package com.funmi.lizip.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.funmi.lizip.entity.EcPostDisasterAssessment;
import com.funmi.lizip.service.EcPostDisasterAssessmentService;
import com.funmi.lizip.mapper.EcPostDisasterAssessmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author wangdc
* @description 针对表灾后评估【ec_post_disaster_assessment】的数据库操作Service实现
* @createDate 2022-11-03 10:33:07
*/
@Service
public class EcPostDisasterAssessmentServiceImpl extends ServiceImpl<EcPostDisasterAssessmentMapper, EcPostDisasterAssessment>
    implements EcPostDisasterAssessmentService{
    @Autowired(required = false)
    private EcPostDisasterAssessmentMapper ecPostDisasterAssessmentMapper;

    @Override
    public EcPostDisasterAssessment getById(int id) {
       return  ecPostDisasterAssessmentMapper.getById(id);
    }

    @Override
    public boolean delete(Long id) {
        return  ecPostDisasterAssessmentMapper.delete(id);
    }
}




